package com.zhehekeji.opsys.api.entity;

// Generated 2016-3-11 10:21:54 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * TVotePlayer generated by hbm2java
 */
@Entity
@Table(name="t_vote_player")
public class TVotePlayer implements java.io.Serializable {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 7441220693302213967L;
	private Long id;
	private String code;
	private String relCode;
	private String relCodehd;
	private String name;
	private String avatar;
	private String avatarhd;
	private Integer votes;
	private TVoteGame tvoteGame;
	private String profile;
	private Integer sequence;
	private Date createTime;
	private Date updateTime;
	private Integer status;
	private Long cpCode;

	private Integer votesOther;
	private Integer votesTotal;
	private TVoteRegion tvoteRegion;
	private String playerNo;
	
	private Integer voteTimes;
	private Integer voteTimesHd;
	private Integer voteTimes4k;
	
	private Integer verctrl;
	
	private Date startTime;
	private Date endTime;
	
	public TVotePlayer() {
	}

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="CODE",length=64,nullable=true)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	@Column(name="REL_CODE",length=64,nullable=true)
	public String getRelCode() {
		return relCode;
	}

	public void setRelCode(String relCode) {
		this.relCode = relCode;
	}
	@Column(name="REL_CODEHD",length=64,nullable=true)
	public String getRelCodehd() {
		return relCodehd;
	}

	public void setRelCodehd(String relCodehd) {
		this.relCodehd = relCodehd;
	}
	@Column(name="NAME",length=128,nullable=true)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="AVATAR",length=1024,nullable=true)
	public String getAvatar() {
		return this.avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	@Column(name="AVATARHD",length=1024,nullable=true)
	public String getAvatarhd() {
		return avatarhd;
	}

	public void setAvatarhd(String avatarhd) {
		this.avatarhd = avatarhd;
	}
	@Column(name="VOTES",length=11,nullable=true)
	public Integer getVotes() {
		return this.votes;
	}

	public void setVotes(Integer votes) {
		this.votes = votes;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="VOTE_ID")
	public TVoteGame getTvoteGame() {
		return tvoteGame;
	}

	public void setTvoteGame(TVoteGame tvoteGame) {
		this.tvoteGame = tvoteGame;
	}

	@Column(name="PROFILE",nullable=true)
	public String getProfile() {
		return profile;
	}

	public void setProfile(String profile) {
		this.profile = profile;
	}
	@Column(name="SEQUENCE",length=11,nullable=true)
	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME")
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name="STATUS",length=2,nullable=true)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return this.cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
	@Column(name="VOTES_OTHER",length=11,nullable=true)
	public Integer getVotesOther() {
		return votesOther;
	}

	public void setVotesOther(Integer votesOther) {
		this.votesOther = votesOther;
	}
	@Column(name="VOTES_TOTAL",length=11,nullable=true)
	public Integer getVotesTotal() {
		return votesTotal;
	}

	public void setVotesTotal(Integer votesTotal) {
		this.votesTotal = votesTotal;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="REGION_ID")
	public TVoteRegion getTvoteRegion() {
		return tvoteRegion;
	}

	public void setTvoteRegion(TVoteRegion tvoteRegion) {
		this.tvoteRegion = tvoteRegion;
	}
	@Column(name="PLAYER_NO",length=64,nullable=true)
	public String getPlayerNo() {
		return playerNo;
	}

	public void setPlayerNo(String playerNo) {
		this.playerNo = playerNo;
	}
	@Column(name="VOTE_TIMES",length=11,nullable=true)
	public Integer getVoteTimes() {
		return voteTimes;
	}

	public void setVoteTimes(Integer voteTimes) {
		this.voteTimes = voteTimes;
	}
	@Column(name="VOTE_TIMES_HD",length=11,nullable=true)
	public Integer getVoteTimesHd() {
		return voteTimesHd;
	}

	public void setVoteTimesHd(Integer voteTimesHd) {
		this.voteTimesHd = voteTimesHd;
	}
	@Column(name="VOTE_TIMES_4K",length=11,nullable=true)
	public Integer getVoteTimes4k() {
		return voteTimes4k;
	}

	public void setVoteTimes4k(Integer voteTimes4k) {
		this.voteTimes4k = voteTimes4k;
	}
	@Version
	@Column(name="VERCTRL",length=11,nullable=true)
	public Integer getVerctrl() {
		return verctrl;
	}

	public void setVerctrl(Integer verctrl) {
		this.verctrl = verctrl;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="START_TIME")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="END_TIME")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
}
